<template>
  <van-form @submit="onSubmit">
    <van-cell-group inset>
      <van-field v-model="username" name="username" label="用户名" placeholder="用户名"
        :rules="[{ required: true, message: '手机号必填且必须是11位数字' }]" />
      <van-field v-model="password" type="password" name="password" label=""
        :rules="[{ required: true, message: '请输入验证码' }]"/>
        <input type="" placeholder="请输入密码" style="border: 1px solid white;border-bottom: 3px solid red;">
        <button >获取验证码</button>
    </van-cell-group>
    <div style="margin: 16px;">
      <van-button round block type="primary" native-type="submit" @click="$router.push('/user')">
        登录
      </van-button>
    </div>
  </van-form>
</template>
<script setup>


</script>